<app-table-page #st [tmp]="tmp" [config]="config" *ngIf="!showEdit" (operateClick)="operate($event)" (_selectChange)="selectedData=$event">
  <ng-template #tmp>
    <button nz-button nzType="primary" (click)="showEdit=true;btnData=null">新增</button>
    <button nz-button nzType="danger" (click)="delete()">删除</button>
  </ng-template>
</app-table-page>
<sf [schema]="schema" *ngIf="showEdit" [formData]="btnData" [button]="{reset: '取消'}" (formReset)="showEdit = false"></sf>
